Skip to content

gh-146011: Fix use-after-free in signaldict_repr after deletion#153784

Open
brijkapadia wants to merge 3 commits into
python:mainfrom
brijkapadia:signaldict-repr
Open

gh-146011: Fix use-after-free in signaldict_repr after deletion#153784
brijkapadia wants to merge 3 commits into
python:mainfrom
brijkapadia:signaldict-repr

Conversation

@brijkapadia

@brijkapadia brijkapadia commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

@brijkapadia

Copy link
Copy Markdown
Contributor Author

@skirpichev could you take a look whenever you have time?

@skirpichev
skirpichev self-requested a review July 19, 2026 08:40
Comment on lines +1505 to +1506
if (traps != NULL) {
traps->flags = NULL;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will introduce a memory leak, if context was not deleted before. You miss DECREF in this case, no?

I think that my suggestion in the issue thread is more correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants